from __future__ import absolute_import, unicode_literals
import datetime
from kombu import Connection

with Connection('amqp://guest@localhost//') as conn:
    simple_queue = conn.SimpleQueue("simple_queue")
    message = "hello, sent at {0}".format(datetime.datetime.today())
    simple_queue.put(message)
    print("Sent:{0}".format(message))
    simple_queue.close()












